new Vue({
    el: "#app",
    components: {
        alert: {
            template: `
					<button @click='onClick'>这是按钮</button>
				`,
            methods: {
                onClick: function() {
                    alert("Yo.");
                }
            }
        }
    }
});
